package com.yanqu.road.entity.log.cross.biaoju;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.utils.date.DateHelper;

import java.util.Date;
import java.util.Map;

@FieldTypeAnnotation(desc = "镖局镖师经验日志", tableName = "t_l_ck_biaoju_log_exp", uploadCk = true, autoSave = true, isCross = true)
public class LogBiaoJuExp extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "分组", isIndex = true)
    private int unionGroup;
    @FieldTypeAnnotation(desc = "玩家id", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "增加经验")
    private long expAdd;
    @FieldTypeAnnotation(desc = "当前经验")
    private long nowExp;
    @FieldTypeAnnotation(desc = "当前等级")
    private int nowLevel;
    @FieldTypeAnnotation(desc = "是否队长")
    private boolean isLeader;
    @FieldTypeAnnotation(desc = "时间")
    private long logTime;

    public LogBiaoJuExp(int activityId, int unionGroup, long userId, long expAdd, long nowExp, int nowLevel, boolean isLeader) {
        this.activityId = activityId;
        this.unionGroup = unionGroup;
        this.userId = userId;
        this.expAdd = expAdd;
        this.nowExp = nowExp;
        this.nowLevel = nowLevel;
        this.isLeader = isLeader;
        this.logTime = DateHelper.getCurrentTime();
    }

    public int getActivityId() {
        return activityId;
    }

    public int getUnionGroup() {
        return unionGroup;
    }

    public long getUserId() {
        return userId;
    }

    public long getExpAdd() {
        return expAdd;
    }

    public long getNowExp() {
        return nowExp;
    }

    public int getNowLevel() {
        return nowLevel;
    }

    public long getLogTime() {
        return logTime;
    }

    public boolean isLeader() {
        return isLeader;
    }
}
